package com.xiaolin.sports.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xiaolin.sports.dao.SmsValidateCodeMapper;
import com.xiaolin.sports.model.SmsValidateCode;
import com.xiaolin.sports.service.ISmsValidateCodeService;

@Service("smsValidateCodeService")
public class SmsValidateCodeServiceImpl implements ISmsValidateCodeService {

	@Autowired
	private SmsValidateCodeMapper smsValidateCodeMapper;
	
	@Override
	public int insertSelective(SmsValidateCode record) {
		return smsValidateCodeMapper.insertSelective(record);
	}

	@Override
	public int selectCountForDay(String ip) {
		return smsValidateCodeMapper.selectCountForDay(ip);
	}

	@Override
	public int isValid(SmsValidateCode record) {
		return smsValidateCodeMapper.isValid(record);
	}

}
